package com.spm.librarianmanagersystem.mapper;

import com.spm.librarianmanagersystem.pojo.Borrow;
import com.spm.librarianmanagersystem.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: 苏成
 * @Date: 2022/04/07/11:05
 * @Description:
 */
@Mapper
@Repository
public interface UserManageMapper {
    Member getMember(int user_id);

    boolean updateMember(Map map);

    boolean addMember(Map map);

    boolean deleteMember(int user_id);

    boolean deleteFine(int user_id);

    boolean deleteBorrow(int user_id);

    boolean deleteRes(int user_id);

    List<Member> getAll();

    List<Borrow> getAllBorrow();
}
